Carbon


UserItemProcPtr

Header: Dialogs.h Carbon status: Supported

typedef void(* UserItemProcPtr) (
    DialogRef theDialog, 
    DialogItemIndex itemNo
);

You would declare your function like this if you were to name it MyUserItemCallback:

void MyUserItemCallback (
    DialogRef theDialog, 
    DialogItemIndex itemNo
);
DISCUSSION

When the Appearance Manager is available and an embedding hierarchy is established in a dialog box, you should provide the Control Manager user pane drawing function MyUserPaneDrawCallback instead of the user item drawing function MyUserItemCallback to draw an application-defined control (a dialog item becomes a control in a dialog box with an embedding hierarchy).

You can provide other user pane application-defined functions to hit test, track, perform idle processing, handle keyboard, activate, and deactivate event processing, handle keyboard focus, and set the background color or pattern in a user pane control.

VERSION NOTES

This function is not recommended with Appearance Manager 1.0 and later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)